Programming With QuickTime Sprites

| Previous | Chapter Contents | Chapter Top | Next |

Sprite's Bounding Box

A sprite's bounding box and its four corners are both expressed in its track's local coordinate system.

The bounding box of a sprite, shown in Figure 0-3 , is the smallest rectangle that encloses the sprite's area after its matrix is applied. If a sprite is only translated, its bounding box will have the same dimensions as its source box. However, if the sprite is rotated 45 degrees, the bounding box may be larger than its source box.

Figure 3 A bounding box in a sprite track's local coordinate system


© 1998 Apple Computer, Inc.

| Previous | Chapter Contents | Chapter Top | Next |